/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Scanner;

/**
 * <p>Project: javase - InputDemo2
 * <p>Powered by webrx On 2021-11-24 14:20:03
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class InputDemo2 {
    public static void main(String[] args) {
        var sc = new Scanner(System.in);
        System.out.print("请输入姓名：");
        String name = sc.nextLine();
        System.out.printf("欢迎：%s%n", name);
        System.out.print("请输入年龄：");
        int age = sc.nextInt();
        System.out.println(age);
    }
}
